<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmIPAddressEdit.cpp -->
  <title>QCtmIPAddressEdit Class | QCustomUi 1.10.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.10.0</a></li>
<li><a href="index.html">QCustomUi</a></li>
<li>QCtmIPAddressEdit</li>
<li id="buildversion">QCustomUi 1.10.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QCtmIPAddressEdit Class</h1>
<!-- $$$QCtmIPAddressEdit-brief -->
<p>IPv4 输入框. <a href="#details">More...</a></p>
<!-- @@@QCtmIPAddressEdit -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmIPAddressEdit.h&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> QWidget</td></tr></table></div>
<ul>
<li><a href="qctmipaddressedit-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qctmipaddressedit.html#readOnly-prop">readOnly</a></b> : bool</li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#QCtmIPAddressEdit">QCtmIPAddressEdit</a></b>(QWidget *<i>parent</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#dtor.QCtmIPAddressEdit">~QCtmIPAddressEdit</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#ipAddress">ipAddress</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#isReadOnly">isReadOnly</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#setIPAddress">setIPAddress</a></b>(const QString &amp;<i>ip</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#setReadOnly">setReadOnly</a></b>(bool <i>ro</i>)</td></tr>
</table></div>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#editChanged">editChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#editingFinished">editingFinished</a></b>()</td></tr>
</table></div>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#event">event</a></b>(QEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#focusInEvent">focusInEvent</a></b>(QFocusEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#focusOutEvent">focusOutEvent</a></b>(QFocusEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#inputMethodEvent">inputMethodEvent</a></b>(QInputMethodEvent *<i>e</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#keyPressEvent">keyPressEvent</a></b>(QKeyEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#minimumSizeHint">minimumSizeHint</a></b>() const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b>(QMouseEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#mouseMoveEvent">mouseMoveEvent</a></b>(QMouseEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#mousePressEvent">mousePressEvent</a></b>(QMouseEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#mouseReleaseEvent">mouseReleaseEvent</a></b>(QMouseEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#paintEvent">paintEvent</a></b>(QPaintEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qctmipaddressedit.html#sizeHint">sizeHint</a></b>() const override</td></tr>
</table></div>
<!-- $$$QCtmIPAddressEdit-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p><b>截图:</b></p>
<p class="centerAlign"><img src="images/QCtmIPAddressEditDetail.png" alt="" /></p></div>
<!-- @@@QCtmIPAddressEdit -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$readOnly-prop$$$isReadOnly$$$setReadOnlybool -->
<h3 class="fn" id="readOnly-prop"><span class="name">readOnly</span> : <span class="type">bool</span></h3>
<p>输入框是否只读.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qctmipaddressedit.html#isReadOnly">isReadOnly</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qctmipaddressedit.html#setReadOnly">setReadOnly</a></b></span>(bool <i>ro</i>)</td></tr>
</table></div>
<!-- @@@readOnly -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmIPAddressEdit[overload1]$$$QCtmIPAddressEditQWidget* -->
<h3 class="fn" id="QCtmIPAddressEdit">QCtmIPAddressEdit::<span class="name">QCtmIPAddressEdit</span>(<span class="type">QWidget</span> *<i>parent</i>)</h3>
<p>构造函数 <i>parent</i>.</p>
<!-- @@@QCtmIPAddressEdit -->
<!-- $$$editChanged[overload1]$$$editChanged -->
<h3 class="fn" id="editChanged"><code>[signal] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">editChanged</span>()</h3>
<p>当文本变化时发送该信号.</p>
<!-- @@@editChanged -->
<!-- $$$editingFinished[overload1]$$$editingFinished -->
<h3 class="fn" id="editingFinished"><code>[signal] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">editingFinished</span>()</h3>
<p>编辑完成时发送该信号.</p>
<!-- @@@editingFinished -->
<!-- $$$~QCtmIPAddressEdit[overload1]$$$~QCtmIPAddressEdit -->
<h3 class="fn" id="dtor.QCtmIPAddressEdit"><code>[virtual] </code>QCtmIPAddressEdit::<span class="name">~QCtmIPAddressEdit</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmIPAddressEdit -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn" id="event"><code>[override virtual protected] </code><span class="type">bool</span> QCtmIPAddressEdit::<span class="name">event</span>(<span class="type"><a href="https://doc.qt.io/qt/qevent.html">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qobject.html#event">QObject::event</a>(QEvent *e).</p>
<!-- @@@event -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn" id="focusInEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">focusInEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qfocusevent.html">QFocusEvent</a></span> *<i>event</i>)</h3>
<!-- @@@focusInEvent -->
<!-- $$$focusOutEvent[overload1]$$$focusOutEventQFocusEvent* -->
<h3 class="fn" id="focusOutEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">focusOutEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qfocusevent.html">QFocusEvent</a></span> *<i>event</i>)</h3>
<!-- @@@focusOutEvent -->
<!-- $$$inputMethodEvent[overload1]$$$inputMethodEventQInputMethodEvent* -->
<h3 class="fn" id="inputMethodEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">inputMethodEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qinputmethodevent.html">QInputMethodEvent</a></span> *<i>e</i>)</h3>
<!-- @@@inputMethodEvent -->
<!-- $$$ipAddress -->
<h3 class="fn" id="ipAddress"><span class="type"><a href="https://doc.qt.io/qt/qstring.html">QString</a></span> QCtmIPAddressEdit::<span class="name">ipAddress</span>() const</h3>
<p>返回IP地址.</p>
<p><b>Note: </b>Getter function for property ipAddress. </p>
<p><b>See also </b><a href="qctmipaddressedit.html#setIPAddress">setIPAddress</a>.</p>
<!-- @@@ipAddress -->
<!-- $$$isReadOnly -->
<h3 class="fn" id="isReadOnly"><span class="type">bool</span> QCtmIPAddressEdit::<span class="name">isReadOnly</span>() const</h3>
<p>返回是否只读.</p>
<p><b>Note: </b>Getter function for property <a href="qctmipaddressedit.html#readOnly-prop">readOnly</a>. </p>
<p><b>See also </b><a href="qctmipaddressedit.html#setReadOnly">setReadOnly</a>.</p>
<!-- @@@isReadOnly -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn" id="keyPressEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">keyPressEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qkeyevent.html">QKeyEvent</a></span> *<i>event</i>)</h3>
<!-- @@@keyPressEvent -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn" id="minimumSizeHint"><code>[override virtual protected] </code><span class="type"><a href="https://doc.qt.io/qt/qsize.html">QSize</a></span> QCtmIPAddressEdit::<span class="name">minimumSizeHint</span>() const</h3>
<!-- @@@minimumSizeHint -->
<!-- $$$mouseDoubleClickEvent[overload1]$$$mouseDoubleClickEventQMouseEvent* -->
<h3 class="fn" id="mouseDoubleClickEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">mouseDoubleClickEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qmouseevent.html">QMouseEvent</a></span> *<i>event</i>)</h3>
<!-- @@@mouseDoubleClickEvent -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn" id="mouseMoveEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">mouseMoveEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qmouseevent.html">QMouseEvent</a></span> *<i>event</i>)</h3>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn" id="mousePressEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">mousePressEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qmouseevent.html">QMouseEvent</a></span> *<i>event</i>)</h3>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn" id="mouseReleaseEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">mouseReleaseEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qmouseevent.html">QMouseEvent</a></span> *<i>event</i>)</h3>
<!-- @@@mouseReleaseEvent -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn" id="paintEvent"><code>[override virtual protected] </code><span class="type">void</span> QCtmIPAddressEdit::<span class="name">paintEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qpaintevent.html">QPaintEvent</a></span> *<i>event</i>)</h3>
<!-- @@@paintEvent -->
<!-- $$$setIPAddress -->
<h3 class="fn" id="setIPAddress"><span class="type">void</span> QCtmIPAddressEdit::<span class="name">setIPAddress</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstring.html">QString</a></span> &amp;<i>ip</i>)</h3>
<p>设置 <i>ip</i> 地址.</p>
<p><b>Note: </b>Setter function for property <a href="qctmipaddressedit.html#ipAddress">ipAddress</a>. </p>
<p><b>See also </b><a href="qctmipaddressedit.html#ipAddress">ipAddress</a>().</p>
<!-- @@@setIPAddress -->
<!-- $$$setReadOnly -->
<h3 class="fn" id="setReadOnly"><span class="type">void</span> QCtmIPAddressEdit::<span class="name">setReadOnly</span>(<span class="type">bool</span> <i>ro</i>)</h3>
<p>设置是否只读 <i>ro</i>.</p>
<p><b>Note: </b>Setter function for property <a href="qctmipaddressedit.html#readOnly-prop">readOnly</a>. </p>
<p><b>See also </b><a href="qctmipaddressedit.html#isReadOnly">isReadOnly</a>().</p>
<!-- @@@setReadOnly -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn" id="sizeHint"><code>[override virtual protected] </code><span class="type"><a href="https://doc.qt.io/qt/qsize.html">QSize</a></span> QCtmIPAddressEdit::<span class="name">sizeHint</span>() const</h3>
<!-- @@@sizeHint -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
